//
//  UIView+properties.h
//  KSBridgeDesign
//
//  Created by huzhaoke on 2021/4/5.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (properties)

@property (nonatomic, assign) CGFloat left;

@property (nonatomic, assign) CGFloat top;

@property (nonatomic, assign) CGFloat bottom;

@property (nonatomic, assign) CGFloat right;

@property (nonatomic, assign) CGFloat centerX;

@property (nonatomic, assign) CGFloat centerY;

@property (nonatomic, assign) CGFloat width;

@property (nonatomic, assign) CGFloat height;

@property (nonatomic, assign) CGSize size;

@property (nonatomic, assign) CGPoint origin;

@property (nonatomic, assign) CGFloat theHeightFromScreenBottom;

/**
 * 设置origin 的x，以及center的y。
 */
- (void) setOriginX:(CGFloat)originX centerY:(CGFloat)centerY;

/**
 * 设置center的x以及origin的y。
 */
- (void)setCenterX:(CGFloat)centerX originY:(CGFloat)originY;


@end

NS_ASSUME_NONNULL_END
